package top.tangyh.lamp.care.service;

import top.tangyh.basic.base.service.SuperService;
import top.tangyh.lamp.care.entity.BHl7RkDetail;
import top.tangyh.lamp.care.vo.query.PatientHistoryPageQueryVO;
import top.tangyh.lamp.care.vo.result.Hl7RkDetailOutVO;
import top.tangyh.lamp.care.vo.result.PageOutputDTO;
import top.tangyh.lamp.care.vo.save.BHl7RkDetailSaveVO;
import top.tangyh.lamp.care.vo.update.BHl7RkDetailUpdateVO;
import top.tangyh.lamp.care.vo.result.BHl7RkDetailResultVO;
import top.tangyh.lamp.care.vo.query.BHl7RkDetailPageQuery;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;


/**
 * <p>
 * 业务接口
 * 入科明细表
 * </p>
 *
 * @author zqb
 * @date 2024-07-15 11:16:18
 * @create [2024-07-15 11:16:18] [zqb] [代码生成器生成]
 */
public interface BHl7RkDetailService extends SuperService<Long, BHl7RkDetail> {


    PageOutputDTO<Hl7RkDetailOutVO> selectHistoryPatientsPage(PatientHistoryPageQueryVO patientHistoryPageQueryVO);


    List<Hl7RkDetailOutVO> selectRkListOfHistoryPatientNew(String patientIdent, String hospitalNumber);

    /**
     * 查询下患者最新一条入科信息
     * @param hospitalNumber
     * @return
     */
    BHl7RkDetail selectLastRk( String hospitalNumber);

    BHl7RkDetail selectRkByPatientIdentAndRkTime(String patientIdent, LocalDateTime rkTime, Long id);

}


